package com.cyp.blogsystem.service;

import com.cyp.blogsystem.model.query.CommentQuery;
import com.cyp.blogsystem.model.request.CreateCommentRequest;
import com.cyp.blogsystem.model.vo.CommentVO;
import com.cyp.blogsystem.pojo.PageResult;

public interface CommentService {
    /**
     * 发表评论
     */
    Long createComment(Long userId, CreateCommentRequest request);

    /**
     * 获取评论列表
     */
    PageResult<CommentVO> getCommentList(CommentQuery query);

    /**
     * 删除评论
     */
    void deleteComment(Long id);
}